<?php
if(!_check_permission_on_function($_SESSION['staff_id'], $_ISA_APP_CODE, _CONST_LIST_APPROVER_AF_DELETE)){?>
	<script>
		alert("<? echo _CONST_FUNCTION_PERMISSION_ERROR; ?>");
		if (_MODAL_DIALOG_MODE==1){
			window.location = "<? echo $v_url; ?>";
		}else{
			window.history.back();
		}	
	</script><?
	exit;
}
$v_list_item_id = $_REQUEST['hdn_list_item_id'];
if(_is_sqlserver()){
	$cmd = mssql_init("ONEGATE_ApproverAfDelete",$conn);
	@mssql_bind($cmd, "@p_list_item_id", $v_list_item_id, SQLVARCHAR);
	mssql_execute($cmd);
}
sleep(0);
?>
<form action="index.php" name="f_back" method="post">
	<input type="hidden" name="fuseaction" value="DISPLAY_ALL_APPROVER_AF">
</form>
<Script language="javascript">	
	document.forms(0).submit();
</Script> 
